home *** CD-ROM | disk | FTP | other *** search
/ Software 2000 / Software 2000 Volume 1 (Disc 1 of 2).iso / utilities / u118.dms / in.adf / iff / compiler.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-11-30  |  1.4 KB  |  55 lines

  1. #ifndef COMPILER_H
  2. #define COMPILER_H
  3. /*** compiler.h *********************************************************/
  4. /*  Steve Shaw                            1/29/86 */
  5. /*  Portability file to handle compiler idiosyncrasies.            */
  6. /*  Version: Lattice 3.03 cross-compiler for the Amiga from the IBM PC. */
  7. /*                                                                      */ 
  8. /* This software is in the public domain.                               */ 
  9. /*                                                                      */ 
  10. /************************************************************************/
  11.  
  12. #ifndef EXEC_TYPES_H
  13. #include "exec/types.h"
  14. #endif
  15.  
  16.  
  17. /* NOTE  --  NOTE  --  NOTE  --  NOTE  --  NOTE
  18.  * Some C compilers can handle Function Declarations with Argument Types
  19.  * (FDwAT) like this:
  20.  *     extern LONG Seek(BPTR, LONG, LONG)
  21.  * while others choke unless you just say
  22.  *     extern LONG Seek()
  23.  *
  24.  * Comment out the #define FDwAT if you have a compiler that chokes. */
  25.  
  26.  
  27.  
  28. /* #define FDwAT     COMMENTED OUT BECAUSE GREENHILLS CANT TAKE IT */
  29.  
  30.  
  31. #ifdef NORTHC
  32.  
  33. /* Put stdio.h in to help with debugging */
  34. #include <stdio.h>
  35.  
  36. #ifndef BOOL
  37. typedef int BOOL;
  38. #endif
  39.  
  40. #define NULL  (0L)
  41.  
  42. typedef char *STRPTR;
  43. typedef char *BSTR;
  44. #ifndef BPTR
  45. typedef void *BPTR;
  46. #endif
  47.  
  48. /* The ANSI memmove() function does the same thing as movmem but with the 
  49.    arguments in a different order */
  50. #define movmem(src,dest,size)  memmove(dest,src,size)
  51. #endif
  52.  
  53. #endif COMPILER_H
  54.  
  55.